<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<link rel="icon" href="../../../favicon.ico">
<link rel="stylesheet" href="../../../layui/css/layui.css" media="all"/>
<link rel="stylesheet"
      href="//at.alicdn.com/t/font_eolqem241z66flxr.css" media="all"/>
<link rel="stylesheet" href="../../../css/main.css" media="all"/>
<link href="../../../css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="../../../css/H-ui.admin.css" rel="stylesheet"
      type="text/css" />
<link href="../../../lib/icheck/icheck.css" rel="stylesheet"
      type="text/css" />
<link href="../../../lib/Hui-iconfont/1.0.1/iconfont.css"
      rel="stylesheet" type="text/css" />
<link href="../../../fileInput/css/fileinput.css"
      rel="stylesheet" type="text/css" />
<link href="../../../login/css/bootstrap.min.css"
      rel="stylesheet" type="text/css" />
<body>
<div class="pd-20">
    <form class="form form-horizontal" id="form-member-add">

        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*
				</span>新密码：</label>
            <div class="formControls col-5">
                <input
                        type="text" class="selectInput hand form-control input-sm"
                        aria-describedby="inputSuccess3Status"
                        style="background: white; border: 1px solid #ddd"
                        placeholder="输入新密码" id="newPassword">
            </div>
            <div class="col-4">
                <button class="btn btn-success btn-sm" type="button"
                        onclick="javascript : submits();">
                    <i class="fa fa-search"></i>提交
                </button>
            </div>
        </div>
    </form>

</div>
<script type="text/javascript"
        src="../../../lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript"
        src="../../../lib/icheck/jquery.icheck.min.js"></script>
<script type="text/javascript"
        src="../../../lib/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="../../../lib/layer/1.9.3/layer.js"></script>
<script type="text/javascript" src="../../../js/H-ui.js"></script>
<script type="text/javascript" src="../../../js/H-ui.admin.js"></script>
<script type="text/javascript" src="../../../fileInput/js/fileinput.js"></script>
<script type="text/javascript" src="../../../fileInput/js/locales/zh.js"></script>
<script>
    function submits(){
        $.ajax({
            traditional: true,
            url: "../../../../../../v1/admin/update?id=" + parent.GetQueryString("id")+"&password="+$("#newPassword").val(),
            data: {},
            dataType: "json",
            type: "get",
            success: function (data) {
                if (data.status == 0) {
                    layer.alert('修改成功！', {
                        icon: 6
                    }, function () {
                        window.location.reload();
                    });
                } else {
                    layer.alert('修改失败！', {
                        icon: 5
                    });
                }
            }
        });
    }
</script>
</body>
</html>